home *** CD-ROM | disk | FTP | other *** search
/ PC World 1999 October / PCWorld_1999-10_cd1.bin / Software / Servis / X-setup / _SETUP.1 / XQ WinNT File System 1.xpl < prev    next >
Text File  |  1999-06-14  |  2KB  |  67 lines

  1. "FILE"="Xteq Systems X-Setup Plugin 3.1"
  2. "TYPE"="6"
  3. "COUNT"="2"
  4. "UIPATH"="System\File System\Options"
  5. "NAME"="Windows NT Options"
  6. "LANGUAGE"="VBScript"
  7. "TEXT 1"="Enable update of "Last Access" attribute"
  8. "TEXT 2"="Clear pagefile (swapfile) on shutdown"
  9. "DESCRIPTION 1"="By default, Windows NT updates the attribute "Last Access at" each time you access a file."
  10. "DESCRIPTION 2"="If you don't need this feature, you can disable it here to save time."
  11. "DESCRIPTION 3"="Disabling this feature is useful if this machine is used as a fileserver and should be as fast as possible."
  12. "DESCRIPTION 4"=""
  13. "DESCRIPTION 5"="By default, the Windows NT pagefile (for temp. memory) is left intact on shutdown, and could be scanned for useful information."
  14. "DESCRIPTION 6"="By enabling this option, the pagefile is cleared on shutdown by Windows NT so it can't be scanned."
  15. "AUTHOR"="Xteq Systems"
  16. "COPYRIGHT"="Copyright ⌐ Xteq Systems - All Rights Reserved"
  17. "COMMENT 1"="For more information, go to http://www.xteq.com or write to TeXHeX@gmx.net."
  18. "COMMENT 2"="Version 1.1"
  19.  
  20.  
  21. sP="HKLM\System\CurrentControlSet\Control\FileSystem\NtfsDisableLastAccessUpdate"
  22. sP2="HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management\ClearPageFileAtShutdown"
  23. Sub Plugin_Initialize 
  24.  if GetWinVer=2 then
  25.   
  26.     i=RegReadValue(sP)
  27.     if IsEmpty(i) or i=0 then
  28.        SetUIElement 1,true
  29.     end if
  30.  
  31.     i=RegReadValue(sP2)
  32.     if i=1 then
  33.        Call SetUIElement(2,true) 
  34.     end if  
  35.  
  36.  else
  37.     Disable
  38.  end if
  39.  
  40. End Sub
  41.  
  42. Sub Plugin_CheckData(ElementIndex)
  43. End Sub
  44.  
  45. Sub Plugin_Apply(ElementIndex,ElementSubIndex)
  46.  b=GetUIElement(1)
  47.  if b=true then
  48.     Call RegWriteValue(sp,0,2)
  49.  else 
  50.     Call RegWriteValue(sp,1,2)
  51.  end if
  52.  
  53.  
  54.  b=GetUIElement(2)
  55.  if b=true then
  56.     Call RegWriteValue(sP2,1,2) 
  57.  else
  58.     Call RegWriteValue(sP2,0,2) 
  59.  end if
  60.  
  61.  
  62.  Restart
  63. End Sub
  64.  
  65. Sub Plugin_Terminate 
  66. End Sub
  67.